package com.lida.wechat.utils;

import javax.servlet.http.HttpServletRequest;

public class PayConfigUtil {
    public static final String APP_ID = "wx632c8f211f8122c6";   //微信开发平台应用ID(公众号ID)
    public static final String MCH_ID = "1497984412";   //商户号(商户号ID)
    public static final String API_KEY = "sbNCm1JnevqI36LrEaxFwcaT0hkGxFnC";    //API key(商户号里面的)
    public static final String CREATE_IP = "";  //发起支付的ip
    public static final String NOTIFY_URL = "http://47.103.204.132:20000/api/pay/weixinNotify"; //回调地址
    public static final String UFDODER_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";  //微信统一下单接口
    //public static final String UFDODER_URL = "https://api.mch.weixin.qq.com/sandboxnew/pay/micropay"; //微信统一下单接口
    public static final String APP_SECRET = "4b438be89862ab64a2cb2960a8f696bd"; //应用对应的凭证(在公众号里面)

    //获取ip
    public static String getIP(HttpServletRequest request) {
        String ip = request.getRemoteAddr();
        return ip;
    }
}
